<template>
  <div class="content-title" ref="title">
    <div class="su-title">
      <i class="el-icon-tickets"></i>
      <span>{{ titleProp.titleName }}</span>
    </div>
    <div>
      <template v-for="(item,key) in titleProp.option">
        <el-button
            :key="key"
            :type="item.type"
            :icon="`${item.icon} el-icon--left`"
            v-if="Utils.arrayContain(item.routerRole,$store.state.routerRole)"
            @click="HandleUtils.handleParent($parent,item.methodName,item)"
        >
          {{ item.name }}
        </el-button>
      </template>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: ['titleProp'],
  data() {
    return {};
  },
  mounted() {
  },
  methods: {},
};
</script>

<style lang="scss" scoped></style>
